home *** CD-ROM | disk | FTP | other *** search
- /*
- ** kbdflush.c
- **
- ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
- ** Redistributed by permission.
- */
-
- #include "pictor.h"
-
- /*
- ** Clears any characters waiting in the keyboard buffer.
- ** Returns the number of characters that were in the buffer.
- */
- int kbdflush(void)
- {
- int i;
-
- for(i = 0;kbdready();i++)
- kbdread();
-
- return(i);
-
- } /* kbdflush */
-